package com.innerclass;

public class StaticInnerClass01 {
    public static void main(String[] args) {

        Outer10 outer10 = new Outer10();
        outer10.m1();

    }
}

class Outer10{
    private int n1 = 10;
    private static String name = "anna";
    //1.放在外部类的成员位置
    //2.使用static修饰
    //3.可以添加任意访问修饰符
    static class Inner10 {
        public void say(){
            System.out.println(Outer10.name);
        }
    }

    public void m1(){
        Inner10 inner10 = new Inner10();
        inner10.say();

    }
}
